package com.ugoodtech.mdcc.core.service;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 */

import com.ugoodtech.mdcc.core.domain.Resource;

import java.io.IOException;
import java.io.OutputStream;

public interface ResourceService {
    Resource save(String filename, byte[] bytes) throws IOException;

    void delete(Long resourceId);

    void readResourceBody(Long attachmentId, OutputStream os) throws IOException;
}
